package ooday03;

public class Test {
    public static void main(String[] args) {
        Dog wc =new Dog("旺财",1,"黑色");
        wc.eat();
        wc.drink();
        wc.lookHome();
        wc.swim();

        Fish cl = new Fish("彩鳞",2,"金色");
        cl.eat();
        cl.drink();
        cl.swim();

        Chick xm = new Chick("小米",1,"黄色");
        xm.eat();
        xm.drink();
        xm.layEggs();

        //Animal o = new Animal();  抽象类不能被实例化（new）







    }
}
